#include <stdio.h>
#pragma warning(disable : 4996)


int main() {


	int age;
	int iq;
	int english_score;

	printf("age:");
	scanf("%d", &age);

	printf("iq:");
	scanf("%d", &iq);

	printf("english_score:");
	scanf("%d",&english_score);

	if (!(age>=18)  &&   (iq>=120 || english_score >=80 ) ) {

		printf("allow to play.");

	}
	else {

		printf("Not allow to play.");

	}










	return 0;
}